import java.text.SimpleDateFormat;
import java.util.Date;


public class MyDate {

	public static void main(String[] args) {
		Date date = new Date();
		System.out.println(date);
		System.out.println(date.getTime());
		 
		Date date1 = new Date();
		
		System.out.println(date1.getTime() - date.getTime());
		
		SimpleDateFormat sdf = new SimpleDateFormat();
		sdf.applyPattern("HH:ss");
		String dateFormated = sdf.format(date);
		System.out.println(dateFormated);
	}
}
